/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package UserInterface;

import BusinessLayer.Facade;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

/**
 *
 * @author Julien
 */
public class GUIGestionSuppressionProfil extends GUI{

     private JLabel titre = new JLabel("Gestion des profils");
     private JLabel consigne1 = new JLabel("Rechercher par nom, prénom ou les deux");
     private JLabel consigne2 = new JLabel("Rechercher par identifiant");
     private JLabel ou = new JLabel("ou");
     private JPanel pannBoutons = new JPanel();
     private javax.swing.JTextField fieldNom= new JTextField("donnez le nom");
     private javax.swing.JTextField fieldPrenom= new JTextField("donnez le prenom");
     private javax.swing.JTextField fieldIdentifiant= new JTextField("donnez l'identifiant");
     private JButton Recherche1 = new JButton("Rechercher");
     private JButton Recherche2 = new JButton("Rechercher");
     private JButton Supprimer1 = new JButton("Supprimer");
     private JButton Supprimer2 = new JButton("Supprimer");
     private javax.swing.JComboBox enseigant1 =new JComboBox();
     private javax.swing.JComboBox enseigant2 =new JComboBox();
     //private JButton Retour = new JButton("valider");

     public GUIGestionSuppressionProfil()
    {
        super();
        initJlabel();
        this.conteneurComplement.setLayout(new BorderLayout());
        this.conteneurComplement.add(this.titre,BorderLayout.NORTH);
        this.titre.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        this.conteneurComplement.add(pannBoutons,BorderLayout.CENTER);
        this.pannBoutons.setPreferredSize(new Dimension(50,0));
        this.pannBoutons.setLayout(new GridBagLayout());
        GridBagConstraints c = new GridBagConstraints();
        c.anchor = GridBagConstraints.WEST;
        c.insets = new Insets(0, 0, 0, 0);

        c.gridx = 0;
        c.gridy = 0;
        c.gridwidth = 2;
        c.gridheight = 1;
        c.weightx = 1;
        c.weighty = 1;

        this.pannBoutons.add(this.consigne1,c);

        c.gridx = 0;
        c.gridy = 1;
        c.gridwidth = 1;

        this.pannBoutons.add(this.fieldNom,c);

        c.gridx = 1;
        c.gridy = 1;

        this.pannBoutons.add(this.fieldPrenom,c);

        c.gridx = 2;
        c.gridy = 1;

        this.pannBoutons.add(this.Recherche1,c);
        this.Recherche1.addActionListener(this);
        this.Recherche1.setActionCommand("Recherche1");

        c.gridx = 3;
        c.gridy = 1;

        this.pannBoutons.add(this.enseigant1,c);
        this.enseigant1.addActionListener(this);
        this.enseigant1.setActionCommand("enseigant1");


        c.gridx = 4;
        c.gridy = 1;

        this.pannBoutons.add(this.Supprimer1,c);
        this.Supprimer1.addActionListener(this);
        this.Supprimer1.setActionCommand("Enseigant2");

        c.gridx = 1;
        c.gridy = 2;

        this.pannBoutons.add(this.ou,c);

        c.gridx = 0;
        c.gridy = 3;
        c.gridwidth = 2;

        this.pannBoutons.add(this.consigne2,c);

        c.gridx = 1;
        c.gridy = 4;
        c.gridwidth = 1;

        this.pannBoutons.add(this.fieldIdentifiant,c);


        c.gridx = 2;
        c.gridy = 4;

        this.pannBoutons.add(this.Recherche2,c);
        this.Recherche1.addActionListener(this);
        this.Recherche1.setActionCommand("Recherche2");

        c.gridx = 3;
        c.gridy = 4;

        this.pannBoutons.add(this.enseigant2,c);
        this.enseigant1.addActionListener(this);
        this.enseigant1.setActionCommand("enseigant2");


        c.gridx = 4;
        c.gridy = 4;

        this.pannBoutons.add(this.Supprimer2,c);
        this.Supprimer1.addActionListener(this);
        this.Supprimer1.setActionCommand("Supprimer2");




        this.fenetre.pack();
    }
        public void initJlabel() {
        this.titre.setFont(new java.awt.Font("Tahoma", 0, 16));
        this.titre.setForeground(new java.awt.Color(0, 153, 153));

    }
}
